﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;


namespace ConsoleApplication2.Models.Mapping 
{
    public class OperationsMap : EntityTypeConfiguration<Operations>
    {
        public OperationsMap()
        {
                    // Primary Key
            this.HasKey(t => t.ID);


            // Table & Column Mappings
            this.ToTable("OperationsMA");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.English).HasColumnName("English");
            this.Property(t => t.Arabic).HasColumnName("Arabic");

            this.Property(t => t.Duration).HasColumnName("Duration");

            this.Property(t => t.Speciality).HasColumnName("Speciality");
        }
    }
}